<%--
  Created by IntelliJ IDEA.
  User: charwayh
  Date: 2020/8/23
  Time: 8:58 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<html>
<head>
    <title>简历列表展示</title>
    <style type="text/css">
        div{
            margin-left: 200px ;
        }
    </style>
</head>
<body>
<div><input type="button" value ="新增" onclick="window.location.href='add.jsp'"></div>
<table id="list" border="1" cellspacing="0" cellpadding="0">
    <tr>
        <th>ID</th>
        <th>姓名</th>
        <th>地址</th>
        <th>电话</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${resumes}" var="resume">
        <tr>
            <th>${resume.id}</th>
            <th>${resume.name}</th>
            <th>${resume.address}</th>
            <th>${resume.phone}</th>
            <th><input type="button" value ="修改" onclick="window.location.href='update.jsp?id=${resume.id}'"/>
                <input type="button" value ="删除" onclick="window.location.href='/Resume/delete?id=${resume.id}'"/></th>
        </tr>
    </c:forEach>
</table>
</body>
</html>